package com.green.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/11/30/10:37
 * @Description: 
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_member")
public class Member {
    /**
     * 会员编号
     */
    @TableId(value = "cardid", type = IdType.INPUT)
    private Integer cardid;

    /**
     * 注册时间
     */
    @TableField(value = "registrationtime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registrationtime;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 会员名称
     */
    @TableField(value = "name")
    private String name;

    public static final String COL_CARDID = "cardid";

    public static final String COL_REGISTRATIONTIME = "registrationtime";

    public static final String COL_PHONE = "phone";

    public static final String COL_NAME = "name";
}